Skip to main content

meg removes <'model'>
🚫 Cancellable
This event is cancellable. This adds:
  • The <context.cancelled> tag
  • The - determine 'cancelled' command
  • The cancelled:<true/false> event switch
  • The 'ignorecancelled:true' event switch

This event is fired when a model is about to be removed from a MegModeledEntityTag.

Contexts​

ContextDescription
<context.action>returns a ElementTag of the interaction cause. Can be: ATTACK, INTERACT or INTERACT_ON.
<context.active_model>returns a MegActiveModelTag of the model.
<context.click_position>returns a LocationTag of the click position (as a world-less vector, relative to the model's center), if any.
<context.item>returns the ItemTag of the item used to interact with the model.
<context.is_secondary>returns a ElementTag(Boolean) of whether the player was crouching when interacting with the model.